#include <cstdlib>
#include <iostream>

#include <Arcade.hpp>
#include <Agent.hpp>
#include <Exception.hpp>

using namespace std;

Application::Agent* agent = NULL;
void Exit();

int main(int argc, char *argv[])
{	
	try {
        agent = new Application::Agent();
        Hardware::Arcade::setGLEventReceiver(agent);
        Hardware::Arcade::turnOn();
	} catch (Exceptions::Exception& e) {
		std::cout << e.getMessage() << std::endl;
	}
	
	system("PAUSE");
	return EXIT_SUCCESS;
}

void Exit()
{
	delete agent;
}

/*
void animate()
{
    glutPostRedisplay();
}
*/
